projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b8e764
)
libelf: make elf_phdr_is_loadable load read-only segments.
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 29 Jan 2010 07:14:32 +0000
(07:14 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 29 Jan 2010 07:14:32 +0000
(07:14 +0000)
From: Brad Plant <bplant@iinet.net.au>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/libelf/libelf-tools.c
patch
|
blob
|
history
diff --git
a/xen/common/libelf/libelf-tools.c
b/xen/common/libelf/libelf-tools.c
index 99a0a9157607735b7b15dd6124e653cd16c759d4..e18f02d6dbcbca4fe4ecc06c167268f43a8401da 100644
(file)
--- a/
xen/common/libelf/libelf-tools.c
+++ b/
xen/common/libelf/libelf-tools.c
@@
-235,7
+235,7
@@
int elf_phdr_is_loadable(struct elf_binary *elf, const elf_phdr * phdr)
uint64_t p_type = elf_uval(elf, phdr, p_type);
uint64_t p_flags = elf_uval(elf, phdr, p_flags);
- return ((p_type == PT_LOAD) && (p_flags & (PF_W | PF_X)) != 0);
+ return ((p_type == PT_LOAD) && (p_flags & (PF_
R | PF_
W | PF_X)) != 0);
}
/*